package com.kwan.x_im.main.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.blankj.utilcode.util.ActivityUtils;
import com.kwan.x_im.R;
import com.kwan.x_im.base.IMBaseActivity;
import com.kwan.x_im.data.http.HttpEvent;
import com.kwan.x_im.databinding.ActivityMainBinding;
import com.kwan.x_im.main.mode.MainViewMode;
import com.kwan.xframe.common.bean.TitleEntity;
import com.kwan.xframe.mvvm.binding.DataBindingConfig;

public class MainActivity extends IMBaseActivity<ActivityMainBinding, MainViewMode> {

	@Override
	protected DataBindingConfig getDataBindingConfig() {
		return new DataBindingConfig(R.layout.activity_main);
	}

	@Override
	protected void initViews() {

	}

	@Override
	protected void initViewSetting() {

	}

	@Override
	protected void initData() {
		super.initData();
		mViewMode.test("1232");
		mBinding.tvTest.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				ActivityUtils.startActivity(SplashActivity.class);
			}
		});
	}

	@Override
	protected TitleEntity getTitleEntity() {
		return TitleEntity.getCommonInstance(this).setTitle("Main");
	}

	@Override
	public void onHttpResult(HttpEvent httpEvent) {

	}
}